﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;

namespace ContraMetal
{
    class Enemy
    {
        #region Variables
        Texture2D texture;
        Vector2 position;
        #endregion

        #region Propiedades
        public Texture2D Texture
        {
            get { return texture; }
            set { texture = value; }
        }

        public Vector2 Position
        {
            get { return position; }
            set { position = value; }
        }
        #endregion

        #region Metodos
        public Enemy(Vector2 pos)
        {
            position = pos;
        }

        public void Load(ContentManager Content)
        {
            texture = Content.Load<Texture2D>("Images/putitotrans");
        }

        public void Update()
        {
            position.X -= 1;
        }

        public void Draw(SpriteBatch batch)
        {
            batch.Draw(texture, position, Color.White);
        }
        #endregion
    }
}